package com.gxa.saas.service.impl;

import com.gxa.saas.mapper.StoreImagesMapper;
import com.gxa.saas.pojo.StoreImages;
import com.gxa.saas.service.StoreImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Throwable.class)

public class StoreImagesServiceImpl implements StoreImagesService {
    @Autowired
    StoreImagesMapper storeImagesMapper;

    @Override
    public void delete(String name) {
        storeImagesMapper.delete(name);
    }

    @Override
    public List<StoreImages> selectImages(String name) {
        return  storeImagesMapper.selectByName(name);
    }
}
